home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
c4
/
pro16
/
netnote.txt
< prev
next >
Wrap
Text File
|
1991-02-10
|
2KB
|
41 lines
Article 1948 of comp.sources.misc:
Path: cos!uunet!sparky!kent
From: ersmith@uwovax.bitnet (Eric R. Smith)
Newsgroups: comp.sources.misc
Subject: v16i090: mkptypes - Generate prototype declarations for C, Part01/01
Message-ID: <1991Feb3.204131.28866@sparky.IMD.Sterling.COM>
Date: 3 Feb 91 20:41:31 GMT
Sender: kent@sparky.IMD.Sterling.COM (Kent Landfield)
Organization: Sterling Software, IMD
Lines: 1207
Approved: kent@sparky.imd.sterling.com
X-Checksum-Snefru: bf556370 9a2818ed 9f5e677b 1ced0392
Submitted-by: ersmith@uwovax.bitnet (Eric R. Smith)
Posting-number: Volume 16, Issue 90
Archive-name: mkptypes/part01
Here is mkptypes, a program for generating prototype declarations for
all functions appearing in a C source file. The output declarations
are enclosed in a macro so as to be usable by either an ANSI or an
older C compiler. Typical usage would be to do 'mkptypes *.c >proto.h'
and then have a '#include "proto.h"' line in the relevant C source
code files. See the README file for more details.
An earlier version of this program was released on comp.sources.misc
under the name "mkproto"; this updated version (with new command line
options and several bug fixes) was renamed to avoid conflict with a
file system utility available on some versions of Unix.
The source will probably compile as-is on most systems, providing you
edit the makefile appropriately (the default is for my configuration,
an Atari ST with gcc).
Eric R. Smith
eric.smith@uwo.ca
ersmith@uwovax.bitnet
# This is a shell archive.
# Remove everything above and including the cut line.
# Then run the rest of the file through sh.